#include "DatoCelda.h"
#include <string>

DatoCelda::DatoCelda() {
	probButtDefault = 95;
	probButtAma = 20;
	probButtAzu = 20;
	probButtRoj = 20;
	probButtVer = 20;
	probButtVio = 20;
	probBarDefault = 4;
	probBarAma = 20;
	probBarAzu = 20;
	probBarRoj = 20;
	probBarVer = 20;
	probBarVio = 20;
	probStarDefault = 1;

	vacia = true;
}

Json::Value DatoCelda::ToJson() const {
	Json::Value value(Json::objectValue);
	value[tagCelda] = numCelda;
	value["vacia"] = !vacia;
	value["pButDef"] = probButtDefault;
	value["pButAma"] = probButtAma;
	value["pButAzu"] = probButtAzu;
	value["pButRoj"] = probButtRoj;
	value["pButVer"] = probButtVer;
	value["pbButVio"] = probButtVio;
	value["pBarDef"] = probBarDefault;
	value["pBarAma"] = probBarAma;
	value["pBarAzu"] = probBarAzu;
	value["pBarRoj"] = probBarRoj;
	value["pBarVer"] = probBarVer;
	value["pBarVio"] = probBarVio;
	value["pStarDef"] = probStarDefault;
	return value;
}

unsigned char DatoCelda::getNumCelda() {
	return numCelda;
}

void DatoCelda::setNumCelda(unsigned char num) {
	numCelda = num;
}

void DatoCelda::setVacia(bool valor) {
	vacia = valor;
}

bool DatoCelda::getVacia() {
	return vacia;
}

void DatoCelda::setProbButtDefault(unsigned char prob) {
	probButtDefault = prob;
}

void DatoCelda::setProbButtAma(unsigned char prob) {
	probButtAma = prob;
}

void DatoCelda::setProbButtAzu(unsigned char prob) {
	probButtAzu = prob;
}

void DatoCelda::setProbButtRoj(unsigned char prob) {
	probButtRoj = prob;
}

void DatoCelda::setProbButtVer(unsigned char prob) {
	probButtVer = prob;
}

void DatoCelda::setProbButtVio(unsigned char prob) {
	probButtDefault = prob;
}

void DatoCelda::setProbBarDefault(unsigned char prob) {
	probBarDefault = prob;
}
void DatoCelda::setProbBarRoj(unsigned char prob) {
	probBarRoj = prob;
}
void DatoCelda::setProbBarAzu(unsigned char prob) {
	probBarAzu = prob;
}
void DatoCelda::setProbBarAma(unsigned char prob) {
	probBarAma = prob;
}
void DatoCelda::setProbBarVio(unsigned char prob) {
	probBarVio = prob;
}
void DatoCelda::setProbBarVer(unsigned char prob) {
	probBarVer = prob;
}

void DatoCelda::setTagCelda(std::string tag) {
	tagCelda = tag;
}

void DatoCelda::setProbStarDefault(unsigned char prob) {
	probStarDefault = prob;
}

unsigned char DatoCelda::getProbButtDefault() {
	return probButtDefault;
}
unsigned char DatoCelda::getProbButtAma() {
	return probButtAma;
}
unsigned char DatoCelda::getProbButtAzu() {
	return probButtAzu;
}
unsigned char DatoCelda::getProbButtRoj() {
	return probButtRoj;
}
unsigned char DatoCelda::getProbButtVer() {
	return probButtVer;
}
unsigned char DatoCelda::getProbButtVio() {
	return probButtVio;
}
unsigned char DatoCelda::getProbBarDefault() {
	return probBarDefault;
}
unsigned char DatoCelda::getProbBarRoj() {
	return probBarRoj;
}
unsigned char DatoCelda::getProbBarAzu() {
	return probBarAzu;
}
unsigned char DatoCelda::getProbBarAma() {
	return probBarAma;
}
unsigned char DatoCelda::getProbBarVio() {
	return probBarVio;
}
unsigned char DatoCelda::getProbBarVer() {
	return probBarVer;
}
unsigned char DatoCelda::getProbStarDefault() {
	return probStarDefault;
}

